/**
 * Company : SIANGKLOM.
 * Created By : Chatree Siangklom
 * Created On : Nov 4, 2013  10:23:20 AM 
 * e-Mail : dr_chatree@hotmail.com
 * Mobile Phone : (+66) 087-921-5115
 * Package Name : com.tis.database.services.impl
 * File Name : SyncAppsHostServices.java
 * TODO
 */
package com.tis.database.services.impl;

import java.util.List;

import org.hibernate.HibernateException;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.tis.database.dao.SyncAppsHostDao;
import com.tis.database.entitys.SyncAppsHost;
import com.tis.database.services.ISyncAppsHostServices;

/**
 * @author Chatree Siangklom of Administrator
 * Date =Nov 4, 2013 : 10:23:20 AM 
 * CreateBy=Chatree Siangklom
 * SyncAppsHostServices
 * TODO
 */
@Service
@Transactional(readOnly=true)
public class SyncAppsHostServices implements ISyncAppsHostServices {
	
	private static final Logger logging = LoggerFactory.getLogger(SyncAppsHostServices.class);
	
	@Autowired
	private SyncAppsHostDao syncAppsHostDao;

	/** (Javadoc)
	 * @see com.tis.database.services.ISyncAppsHostServices#findByCode(java.lang.String, java.lang.String, java.lang.String)
	 * Date =Nov 4, 2013 : 10:23:20 AM 
	 * CreateBy=Chatree Siangklom
	 * TODO
	 */
	@Override
	public List<SyncAppsHost> findByCode(String code, String isActive,String client) throws HibernateException, Exception {
		
		return syncAppsHostDao.findByCode(code, isActive, client);
	}

}
